package com.sanery.ui.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sanery.entity.Type;
import com.sanery.service.TypeService;

@Controller
public class TypeController {

	@Resource(name = "typeService")
	private TypeService service = null;

	@RequestMapping("/getTypes")
	@ResponseBody
	public List<Type> getTypes() {
		List<Type> list = service.getTypes();
		return list;
	}
}
